home *** CD-ROM | disk | FTP | other *** search
- @echo off
- @echo ---------------------------------------------
- @echo I I
- @echo I This file should update some or I
- @echo I all of these files I
- @echo I SC.exe SCD.dll I
- @echo I SCCX.exe SCCD.dll I
- @echo I SCPPX.exe SCPPD.dll I
- @echo I SPPX.exe SPPD.dll I
- @echo I I
- @echo I depending on the version(STD/PRO) of SC I
- @echo I files in your \SC dir I
- @echo I I
- @echo I steps: I
- @echo I cd to \SC I
- @echo I Type "cmpupdat" I
- @echo I I
- @echo ---------------------------------------------
- pause
-
- rem test if any of the compiler components is present.
- rem if not, display error
- if exist .\bin\sccx.exe goto patch
- if exist .\bin\scppx.exe goto patch
- if exist .\bin\sccd.dll goto patch
- if not exist .\bin\scppd.dll goto error
-
- :patch
- rem do the actual patching
- cmppatch .\bin COMP611.rtp /nopathsearch /ignore
-
- rem cleaning up
- @echo -------------------------------------------------
- @echo This batch file will now delete files related to
- @echo this compiler patch with the exception of
- @echo CMPUPDAT.TXT detailing the changes made for
- @echo Symantec C++ 6.11
- @echo .
- @echo Press Ctrl+C to abort
- @echo -------------------------------------------------
- pause
-
- rem files containing the patches
- del COMP611.RTP
-
- rem self-extracting archives
- del COM611.EXE
-
- rem patch utility
- del CMPPATCH.EXE
-
- rem readme-first files
- del CMPREAD.1ST
-
- rem patch instructions
- del COM611.TXT
-
- goto end
-
- :error
- rem display error
- @echo -------------------------------------
- @echo You are not in the right directory!
- @echo Change directory to the root of
- @echo your Symantec C++ installation,
- @echo typically \SC
- @echo -------------------------------------
-
- :end
-